//
//  OcrKit.h
//  DCOcrKit
//
//  Created by 张涛 on 2020/10/12.
//  Copyright © 2020 zhangtao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DCOcrKitMacro.h"
#import "DCOcrKitConfig.h"
#import "DCOcrAdapter.h"
#import <DCUtilKit/DCUtilKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface OcrKit : NSObject

@property(nonatomic,strong) NSDictionary *ocrInfo;
@property(nonatomic,strong) DCOcrAdapter *ocrAdapter;

+ (instancetype) sharedKit;
//初始化ocr管理类
- (void) initWithInfo:(NSDictionary* __nullable)info;
//文字识别
- (void) ocrScan:(DCOcrType)type parentViewController:(UIViewController*)parentViewController callback:(nullable void (^)(DCError *error,NSDictionary *data))callback;
//设置身份证识别方式
- (void) setIdCardOcrScanWay:(DCOcrScanWay)ocrScanWay;
//设置银行卡识别方式
- (void) setBankCardOcrScanWay:(DCOcrScanWay)ocrScanWay;

@end

NS_ASSUME_NONNULL_END
